<?php
include_once "AbstractClass.php";
include_once "MethodChild/ConcreteClassA.php";
include_once "MethodChild/ConcreteClassB.php";

use TemplateMethod\MethodChild\ {ConcreteClassA, ConcreteClassB};

/** 具体逻辑子类A */
$a = new ConcreteClassA();
$a->TemplateMethod();

/** 具体逻辑子类B */
$b = new ConcreteClassB();
$b->TemplateMethod();